package com.demo.service.impl;

import com.demo.dto.PartnerSelfDTO;
import com.demo.mapper.PartnerStatMapper;
import com.demo.model.FormsInfo;
import com.demo.model.PartnerStat;
import com.demo.service.PartnerStatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class PartnerStatServiceImpl implements PartnerStatService {
    @Autowired
    private PartnerStatMapper mapper;


    @Override
    public List<PartnerStat> stat(Date begin, Date end) {
        return mapper.stat(begin,end);
    }

    @Override
    public List<PartnerStat> statSum(Date begin, Date end, String depId) {
        return mapper.statSum(begin, end, depId);
    }

    @Override
    public List<FormsInfo> personal() {
        return mapper.personal();
    }

    @Override
    public List<FormsInfo> week(String ben,String end) {
        return mapper.week(ben, end);
    }

    @Override
    public List<FormsInfo> month() {
        return mapper.month();
    }

    @Override
    public List<FormsInfo> quarter() {
        return mapper.quarter();
    }

    @Override
    public List<FormsInfo> year() {
        return mapper.year();
    }

    @Override
    public List<FormsInfo> all() {
        return mapper.all();
    }

    @Override
    public List<FormsInfo> aimAll(String date) {
        return mapper.aimAll(date);
    }

    @Override
    public List<FormsInfo> depId() {
        return mapper.depId();
    }

    @Override
    public List<FormsInfo> allClient() {
        return mapper.allClient();
    }

    @Override
    public List<FormsInfo> allInfo() {
        return mapper.allInfo();
    }

    @Override
    public List<PartnerSelfDTO> partnerWeek(String begin,String end) {
        return mapper.partnerWeek(begin, end);
    }

    @Override
    public List<PartnerSelfDTO> partnerMonth(String year, String mouth) {
        return mapper.partnerMonth(year, mouth);
    }

    @Override
    public List<PartnerSelfDTO> partnerQuarter(String year,int quar) {
        return mapper.partnerQuarter(year,quar);
    }

    @Override
    public List<PartnerSelfDTO> partnerWeekCount(String begin,String end) {
        return mapper.partnerWeekCount(begin, end);
    }

    @Override
    public List<PartnerSelfDTO> partnerMonthCount(String year, String mouth) {
        return mapper.partnerMonthCount(year, mouth);
    }

    @Override
    public List<PartnerSelfDTO> partnerQuarterCount(String year, int quar) {
        List<PartnerSelfDTO> list=mapper.partnerQuarterCount(year, quar);

        return list;
    }


}
